package com.ly.service;

import com.github.pagehelper.PageInfo;
import com.ly.bean.EasybuySeckillGoods;

import java.util.List;

/**
@author 李岩
@date 2021/12/14-13:52
@describe
*/
public interface SeckillGoodsService {


    int deleteByPrimaryKey(Integer id);

    int insert(EasybuySeckillGoods record);

    //将商品添加到秒杀表中
    int insertSelective(EasybuySeckillGoods record);

    EasybuySeckillGoods selectByPrimaryKey(Integer id) throws Exception;

    EasybuySeckillGoods selectKillGoodFromRedis(Integer id) throws Exception;

    //管理员审核秒杀商品的状态
    void updateByPrimaryKeySelective(EasybuySeckillGoods record);

    void updateByPrimaryKey(EasybuySeckillGoods record);

    //查询所有的秒杀商品的申请
    PageInfo<EasybuySeckillGoods> showAllKillProduct(Integer pageNum) throws Exception;

    //查询首页显示的秒杀商品
    List<EasybuySeckillGoods> showSixKillProduct() throws Exception;

}
